package org.ossean.gather.sourceDao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.ossean.gather.model.PKControlPosts;


public interface PKControlPostsDao {
	
	//向表中插入一条数据
	@Insert("insert into ${table} (`url_md5`) values (#{urlMD5})")
	public void insertOneItem(@Param("table") String table, @Param("urlMD5") String urlMD5);
	
	//读取项目urlMD5码对应的数据信息
	@Select("select * from ${table} where url_md5=#{urlMD5}")
	public PKControlPosts selectItemByUrlMD5(@Param("table") String table, @Param("urlMD5") String urlMD5);
}
